<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>修改其他大数据</title>
		<link href="__CSS__/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="__CSS__/iconfont.css" />
		<link rel="stylesheet" href="__CSS__/style.css" />
		<link rel="stylesheet" href="__CSS__/mall.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" id="return"></a>
			<h1 class="mui-title">修改其他大数据</h1>
		</header>
		<div class="mui-content ">
			<div class="gerenzl_nr">
				<form id="myForm" class="mui-input-group gerenzl_group">
					<div class="mui-input-row ">
						<label><em>*</em>标题</label>
						<input type="text" name="title" value="{$model.title|default=''}" class="mui-input-group" placeholder="请填写标题">
					</div>
					<div class="mui-input-row ">
						<label><em>*</em>图片</label>
						<div class="actions" style="float: right;">
							<div class="file-btn" style="border: 1px solid #CCCCCC;">
								<input type="hidden" id="thumb" name="thumb" value="{$model.thumb|default=''}">
								<input onchange="UpladFile('people', 500)" type="file" accept="image/*" id="file" name="file" multiple>
								<span><img class='img_list' src="{$model.thumb|default='__IMG__/logo1.png'}" id='thumb_img' style="width: 100%;height: 100%;border-radius: 100%" ></span>
							</div>
						</div>
					</div>
					<div class="mui-input-row">
						<label><em>*</em>联系电话</label>
						<input type="text" name="phone" value="{$model.phone|default=''}" style="width: 65%;" class="mui-input-group" placeholder="请填写联系电话">
					</div>
					<div class="mui-input-row">
						<label>备注</label>
						<textarea name="content"  placeholder="请输入备注" class="layui-textarea" style="border: 1px solid #CCCCCC;">{$model.content|default=''}</textarea>
					</div>
					<button type="submit" class="fjysq_sbtn">保存</button>
				</form>
			</div>
		</div>
	</body>

</html>
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/jquery.validate.min.js"></script>
<script src="__JS__/mui.min.js"></script>
<script src="__LIB__/layer.js"></script>
<script src="__JS__/image.zip.js"></script>
<script src="__JS__/index.js"></script>
<link href="__JS__/scs.min.css" rel="stylesheet">
<script>
	$(function() {
		$("#myForm").validate({
			focusInvalid: true,
			onkeyup: false,
			ignore: "",
			onfocusout: false,
			showErrors: function(errorMap, errorList) {
				var msg = "";
				if(errorList != null && errorList != "") {
					msg = errorList[0]['message'];
					layer.msg(msg);
				}
			},
			submitHandler: function(form) { //表单提交句柄,为一回调函数，带一个参数：form   
				app.ajax(window.location.href, true);
			},
			rules: {
				title: {
					required: true
				},
				thumb: {
					required: true
				},
				phone: {
					required: true
				},
				content: {
					required: true
				}
			},
			messages: {
				title: {
					required: "请填写标题"
				},
				thumb: {
					required: "请上传图片"
				},
				phone: {
					required: "请填写联系电话"
				},
				content: {
					required: "请输入备注"
				}
			}
		});
	});
</script>